package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.system.domain.Question;
import lombok.Data;

import java.util.Date;
@Data
public class Param {

    private Integer id;

    // 关联试题表的外键

    private Question question;

    // 选项内容或简答题答案
    private String optionContent;

    // 是否正确答案，0:不是正确答案，1:是正确答案
    private Integer isCorrect;

    // 选项顺序，单选题和多选题有用
    private Integer optionOrder;
    @Excel(name = "试题分类")
    private String questionCategory;

    /** 题型 */
    @Excel(name = "题型")
    private String questionType;

    /** 题干 */
    @Excel(name = "题干")
    private String questionContent;

    /** 正确选项 */
    @Excel(name = "正确选项")
    private String correctAnswer;

    /** 难度 */
    @Excel(name = "难度")
    private String difficulty;


    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long bankId;
    @Excel(name = "题库名称")
    private String bankName;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 试题总量 */
    @Excel(name = "试题总量")
    private Long totalQuestions;

    /** 单选题 */
    @Excel(name = "单选题")
    private Long singleChoice;

    /** 多选题 */
    @Excel(name = "多选题")
    private Long multipleChoice;

    /** 判断题 */
    @Excel(name = "判断题")
    private Long trueFalse;

    /** 填空题 */
    @Excel(name = "填空题")
    private Long fillInTheBlank;

    /** 简答题 */
    @Excel(name = "简答题")
    private Long shortAnswer;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

        private String analysis;
        private String optionA;
        private String optionB;
        private String optionC;
        private String optionD;
        private Integer questionId;

}
